package com.nervenets.web.enumeration;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.nervenets.i18n.Translator;
import io.swagger.annotations.ApiModelProperty;

/**
 * Created by joe on 17-3-15.
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WealthType {
    money,//人民币
    integral,//积分
    ;

    @ApiModelProperty("值")
    public String getValue() {
        return this.name();
    }

    @ApiModelProperty("显示文本")
    public String getText() {
        return Translator.translate(this);
    }
}
